
package ch.hearc.coursJava.IO.RMI.chat;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class UseJFrameChatA
	{

	/*------------------------------------------------------------------*\
	|*							Methodes Public							*|
	\*------------------------------------------------------------------*/

	public static void main(String[] args)
		{
		try
			{
			main();
			}
		catch (Exception e)
			{
			e.printStackTrace();
			}
		}

	public static void main() throws NumberFormatException, UnknownHostException
		{
		RMIData dataServeur = new RMIData(System.getProperty("IDServeur"));
		RMIData dataClient = new RMIData(System.getProperty("IDClient"), new Integer(System.getProperty("port")), InetAddress.getByName(System.getProperty("IP")));
		JFrameChat chat = new JFrameChat(dataServeur, dataClient);
		}

	/*------------------------------------------------------------------*\
	|*							Methodes Private						*|
	\*------------------------------------------------------------------*/

	}